﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using UsingCommand;

namespace ModuleC.ViewModel
{
    public class ViewBViewModel : BindableBase , INotifyPropertyChanged
    {
        IApplicationCommands _applicationCommands;
        private string _title;

        public event PropertyChangedEventHandler? PropertyChanged;

        protected void OnPropertyChanged([CallerMemberName] string propertyname = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyname));
        }

        public string Title
        {
            get { return _title; }
            set {
                SetProperty(ref _title, value);
                OnPropertyChanged();
            } 
        }

        public ViewBViewModel()
        {
            Title = "我是B";
        }
    }
}
